﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Collections.Generic;
using My.ELibrary.Model.COURSE;
using My.ELibrary.Business.COURSE;

public partial class Course_CourseDetal : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ElibCourseModel obj = new ElibCourseModel();
            string top = "1";
            if (Request.QueryString["id"] != null)
            {
                obj = ElibCourseBLL.GetInstance().SelectOne(int.Parse(top));
                Literal1.Text = obj.Ext1;
                Literal8.Text = obj.CourseUnit;
                Literal7.Text = obj.Title;
                Literal2.Text = obj.CourseDate.ToString("yyyy-MM-dd");
                Literal3.Text = obj.Description;
            }
           
        }
    }
}
